<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>SunCMS 后台管理系统</title>
	<link href="./images/system/iframe.css" rel="stylesheet" type="text/css">
	<script src="./include/javascript/jquery.js" type="text/javascript"></script>
	<script type="text/javascript">
		var SCRIPT='<?php echo SCRIPT_NAME?>';
		var SITE_URL='<?php echo SITE_URL?>';
	</script>
	<script src="./include/javascript/main.js" type="text/javascript"></script>
	<script type="text/javascript">
		var iframe = {
			logout: function(){window.location=SITE_URL+SCRIPT+'?m=platform&a=login&do=logout';},
			menu: function(o,url){$(".top_menu li").removeClass("over").eq(o).addClass("over");$("#left_menu ul").addClass("close").eq(o).removeClass("close");url!=''&&this.gomain(url);},
			gomain: function(url){$("#main").attr('src',SITE_URL+SCRIPT+'?m='+url+'&tmp='+Math.random());},
			iframeTest: function()
			{
				var url = '?m=home&a=home';
				dialog.iframe(1,'dialog-iframe 测试！',url,1,1,800,450);
			}
		}

		var getMsg = {
			
		}
	</script>
</head>


<body scroll="no">
	<table style="position: relative;" border="0" cellpadding="0" cellspacing="0" height="100%">
		<tbody>
		<tr height="70px">
		<td>
			<table class='header' style="position: relative;" border="0" cellpadding="0" cellspacing="0">
			<tbody>
			<tr>
				<td>
					<table style="position: relative;" border="0" cellpadding="0" cellspacing="0" height="70px" width="30%">
						<tbody>
							<tr>
								<td style="padding-left:10px;"><img src="./images/system/logo.gif"></td>
							</tr>
							<tr>
								<td valign="bottom" nowrap="nowrap">
									<div class='header_left'>
										<span style="display: inline;">当前站点：
										<select style='width:150px;' class='sinput'>
											<option value='1'>SUNCMS综合演示站</option>
										</select>
										</span>&nbsp;
										<img src="./images/system/select_hide.gif" style="cursor: pointer;" width="13" align="absmiddle" height="13">
									</div>
								</td>
							</tr>
						</tbody>
					</table>
				</td>
				<td>
					<div style='height:70px;'>
						<div class='top_info'>
						当前用户：<b>admin</b>
						&nbsp;[&nbsp;<a href="javascript:void(0);" onclick="iframe.iframeTest();">短消息(<span id="MsgCount">0</span>)</a> | 
						<a href="javascript:void(0);" onclick="dialog.query('你确认要退出系统吗？','iframe.logout()');">退出登录</a> | 
						<a href="javascript:void(0)" onclick="dialog.alert('远程服务器连接失败！');">修改密码</a> ]
						</div>
						<div class='top_menu'>
							<ul>
								<?php foreach($top_menu as $k=>$v){ ?>
								<li <?php if($k==0) {echo "class='over'";}?> onclick='return iframe.menu(<?php echo $k.",\"".$v['url']."\""; ?>);'><div><?php echo $v['name'] ?></div></li>
								<?php } ?>
							</ul>
						</div>
					</div>
				</td>
			</tr>
			</tbody>
			</table>
		</td>
		</tr>
		<tr>
			<td>
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height='100%'>
				<tr height='10px'>
					<td height="2" width="2" class='jiao'></td>
					<td class='top_hr'></td>
					<td width="5px"></td>
				</tr>
				<tr valign="top">
					<td align="right" class='left_hr'>
					<div class='left_menu' id='left_menu'>
						<?php foreach($left_menu as $k=>$v){?>
						<ul <?php if($k!=0){echo "class='close'";}?>>
							<?php foreach($v as $k2=>$v2){?>
							<li onclick="iframe.gomain('<?php echo $v2['url']; ?>');"><img src="./images/system/icon/<?php echo $v2['icon']; ?>"><b><?php echo $v2['name']; ?></b></li>
							<?php } ?>
						</ul>
						<?php } ?>
					</div>
					</td>
				<td height="100%"  width="100%" style='border-bottom:1px solid #ddd'>
					<iframe id='main' name="main" width="100%" scrolling='auto' frameborder="0" height="100%" src="<?php echo SCRIPT_NAME; ?>?m=platform&a=home&do=systeminfo"></iframe>
				</td>
				<td><div class='right_hr'></div></td>
				</tr>
				<tr>
					<td></td>
					<td><div class='bottom_hr'></div></td>
					<td></td>
				</tr>
				<tr height='5px'>
					<td></td>
					<td></td>
					<td></td>
				</tr>
				</table>
			</td>
		</tr>
	</table>

	<div id='dialog'>
		<div id="_dialogbg" style="display:none;background:rgb(51,51,51); position: absolute; left: 0px; top: 0px;width: 100%; height: 100%; z-index: 900;filter:alpha(opacity=30);-moz-opacity: 0.3; opacity: 0.3; "></div>
		<div id="_alertbg" style="display:none;background-color: rgb(51, 51, 51); position: absolute; left: 0px; top: 0px; width: 100%; height: 614px; z-index: 990;filter:alpha(opacity=0);-moz-opacity: 0; opacity: 0; "/>
	</div>
</body>
</html>